# __HEADER__

"""XXX"""

import ldap

class OldapError(ldap.LDAPError):

    """XXX"""

class MultipleObjectsReturned(OldapError):

    """XXX"""

class MissingRDNAttribute(OldapError):

    """XXX An attribute necessary for the RDN is misssing."""

    def __init__(self, missing_attribute):
        self.missing_attribute = missing_attribute

    def __str__(self):
        return 'MissingRDNAttribute: Attribute %r is missing.' % (self.missing_attribute,)

class ReferenceError(OldapError):

    """XXX reference error"""
